﻿<%@ Page Title="Consulta de Alumnos" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmConsultaAlumnos.aspx.cs" Inherits="UI.Secretaria.frmConsultaAlumnos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style8
        {
            width: 738px;
        }
        .style9
        {
            width: 1px;
        }
        .style10
        {
            width: 271px;
        }
        .style11
        {
            width: 110px;
        }
        .style12
        {
            width: 136px;
        }
        .style13
        {
            width: 24px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table class=BTabla>
        <tr>
            <td class="style8">
                <table class="style1" style="width: 99%; margin-right: 0px;">
        <tr>
            <td class="filaTabla" colspan="6">
                Búsqueda de Alumnos</td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
            <td class="style10">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style12">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td class="style11">
                <asp:Label ID="Label1" runat="server" Text="Código/Nombres"></asp:Label>
            </td>
            <td class="style10">
                <asp:TextBox ID="txtNombre" runat="server" Width="257px"></asp:TextBox>
            </td>
            <td class="style9">
                <asp:Label ID="Label2" runat="server" Text="DNI"></asp:Label>
            </td>
            <td class="style12">
                <asp:TextBox ID="txtDni" runat="server" Width="116px"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btnBuscar" runat="server" Height="32px" Text="Buscar" 
                    Width="88px" onclick="btnBuscar_Click" />
            </td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td class="style11">
                &nbsp;</td>
            <td class="style10">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style12">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
                </td>
        </tr>
    </table>
<table class="style1" style="width: 77%">
        <tr>
            <td align="center">
                <asp:GridView ID="grvAlumnos" runat="server" AutoGenerateColumns="False" 
                    Width="700px" Caption="Alumnos encontrados" AllowPaging="True" 
                    PageSize="15" onselectedindexchanged="grvAlumnos_SelectedIndexChanged" 
                    onpageindexchanging="grvAlumnos_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="codigo" HeaderText="Código" >
                        <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="nombres" HeaderText="Nombres" >
                        <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="idestado" HeaderText="Estado" />
                        <asp:BoundField DataField="sexo" HeaderText="Sexo">
                        <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:CommandField HeaderText="Editar" SelectText="Editar" 
                            ShowSelectButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</ContentTemplate>

</asp:UpdatePanel>

    
<table class="style1" style="width: 77%">
        <tr>
            <td align="center">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
